//package com.sgg.springbootsgg001demo.config;
//import com.alibaba.druid.FastsqlException;
//import com.sgg.springbootsgg001demo.bean.User;
//import org.springframework.boot.SpringBootConfiguration;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Import;
//import org.springframework.context.annotation.Scope;
//
//@Import(value = FastsqlException.class)
//@Configuration    // 代表这是一个configuration配置类
//public class AppConfig {
//
//    @Scope(value = "prototype")
//    @Bean(name = "user01")    // 代替以前xml的bean标签，默认是方法的名字
//    public User user() {
//        User user = new User();
//        user.setAge(22);
//        user.setName("xiaohua");
//        return user;
//    }
//
//
////    @Bean
////    public FastsqlException fastsqlException() {
////        return new FastsqlException();
////    }
//
//}
